<html>
<head>
<meta charset="UTF-8" />
<title>企业工资报表</title>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
</head>
<body>
    <p>
        <form action="/wms/staff-search-scode" method="get">
            <input placeholder="按员工代码" name="q" id="q">
            <input type="submit" class="layui-btn" value="搜索">
        </form>
    </p>
    <p>
        <form action="/wms/staff-search-sname" method="get">
            <input placeholder="按员工名称" name="q" id="q">
            <input type="submit" class="layui-btn" value="搜索">
        </form>
    </p>
<!-- <div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
<script language="JavaScript">
$(document).ready(function() {  
   var chart = {
       plotBackgroundColor: null,
       plotBorderWidth: null,
       plotShadow: false
   };
   var title = {
      text: '各部门人数对比'   
   };      
   var tooltip = {
      pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
   };
   var plotOptions = {
      pie: {
         allowPointSelect: true,
         cursor: 'pointer',
         dataLabels: {
            enabled: true,
            format: '<b>{point.name}%</b>: {point.percentage:.1f} %',
            style: {
               color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
            }
         }
      }
   };

   var series= [{
      type: 'pie',
      name: 'number of department',
      data: {{List|safe}}
   }];    

   var json = {};   
   json.chart = chart; 
   json.title = title;     
   json.tooltip = tooltip;  
   json.series = series;
   json.plotOptions = plotOptions;
   $('#container').highcharts(json);  
});
</script> -->
</body>
</html>